package com.nsu.cl.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.nsu.cl.common.Base;
import lombok.Data;

/**
 * 老师表
 *
 * @TableName teacher
 */
@TableName(value = "teacher")
@Data
public class Teacher extends Base implements Serializable {
    /**
     * 老师ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 科目教师
     */
    private String subjectName;

    /**
     * 授课年级
     */
    private String gradeName;

    /**
     * role权限
     */
    @TableField(exist = false)
    String role = "teacher";

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}